package chap4.Task2;
import java.util.Scanner;
public class Task7 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int i, j, j2, k, k2, m;
        for (i = 1; ; i++) {
            System.out.print("输出一个大于6的偶数:");
            m = input.nextInt();
            if (!(m % 2 == 0) || m <= 6) {
                System.out.println("输入错误，重新输入\n");
                continue;
            }
            for (j = 2; j < m; j++) {
                for (j2 = 2; j2 * j2 <= j; j2++) {
                    if (j % j2 == 0)
                        break;
                }
                if (j2 * j2 <= j)
                    continue;
                for (k = m; k >= j; k--) {
                    for (k2 = 2; k2 * k2 <= k; k2++) {
                        if (k % k2 == 0)
                            break;
                    }
                    if (k2 * k2 <= k)
                        continue;
                    if (m == j + k) {
                        System.out.println(m + "=" + j + "+" + k);
                    }
                }
            }
            break;
        }
    }
}